<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>登录页面</title>
		<link rel="stylesheet" href="../css/bootstrap.min.css" />
		<script src="../js/jquery.min.js"></script>
		
	</head>
	<body>
		<div class="container">
			<fieldset>
				<legend>登录</legend>
				<div class="form-group">
					<label for="username">用户名：</label>
					<input
						class="form-control"
						autocomplete="off"
						type="text" 
						name="username"
						id="username"/>
				</div>
				<div class="form-group">
					<label for="password">密码：</label>
					<input 
						class="form-control"
						type="password" 
						name="password"
						id="password"/>
				</div>
				<div class="form-group">
					<button 
						name="submit" 
						id="btnSave" 
						class="btn btn-primary"
						value="保存">保存</button>
					<button
						name="submit"
						id="btnClear" 
						class="btn btn-danger"
						value="保存">取消</button>
				</div>
			</fieldset>
		</div>
	</body>
	<script>
		$("#btnSave").click(function(){
			var username = $("#username").val();
			var password = $("#password").val();
			console.log(username+" "+password);
		})
		$("#btnClear").click(function(){
			$("#btnClear").val("");
			$("#btnClear").val("");
		})
	</script>
	
</html>
